package com.example.iot.controller;

import com.example.iot.service.aliyunDataService;
import com.example.iot.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Lin
 * @version : [v1.0]
 * @className : aliyunDataController
 * @description : 描述说明该类的功能
 * @createTime : 2024/5/24 17:24
 * @updateUser : Lin
 * @updateTime : 2024/5/24 17:24
 * @updateRemark : 描述说明本次修改内容
 */
@RestController
@RequestMapping("/aliyun")
public class aliyunDataController {
    @Autowired
    private aliyunDataService aliyunDataService;
    @RequestMapping("getAliyunData")
    public R getAliyunData() throws Exception{
        return aliyunDataService.getAliyunData();
    }
    @RequestMapping("getTemperatures")
    public R getTemperatures() throws Exception{
        return aliyunDataService.getTemperatures();
    }
    @RequestMapping("getDataLists")
    public R getDataLists() throws Exception{
        return aliyunDataService.getDataLists();
    }

}
